package com.googlecode.jbeansdb.test;

import java.net.InetSocketAddress;
import java.util.HashMap;
import java.util.Map;

import com.googlecode.beansdb4j.Beansdb;
import com.googlecode.beansdb4j.Range;


public class BeansdbClient {
	public static void main(String[] args) {
	   	Map<InetSocketAddress, Range> servers = new HashMap<InetSocketAddress, Range>();
    	servers.put(new InetSocketAddress("127.0.0.1", 8888), new Range(0, 16));
    	Beansdb db = new Beansdb(servers, 16, 3, 2, 2);
    	db.set("foo", "bar");
    	System.out.println(db.get("foo"));

    	db.close();
	}
}
